package com.alibaba.dubbo.demo.provider;

import com.alibaba.dubbo.common.extension.ExtensionLoader;
import com.alibaba.dubbo.demo.DemoService;

import java.util.ServiceLoader;

public class SPI_Demo_JAVA {
    public static void main(String[] args) {
        ServiceLoader<DemoService> demoServices = ServiceLoader.load(DemoService.class);
        for (DemoService demoService : demoServices) {
            System.out.println(demoService.sayHello("JAVA"));
        }




    }
}
